package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.ConferenceRoomMapper;
import com.ruoyi.dailyoperations.domain.ConferenceRoom;
import com.ruoyi.dailyoperations.service.IConferenceRoomService;

/**
 * 会议室信息维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class ConferenceRoomServiceImpl implements IConferenceRoomService 
{
    @Autowired
    private ConferenceRoomMapper conferenceRoomMapper;

    /**
     * 查询会议室信息维护
     * 
     * @param id 会议室信息维护主键
     * @return 会议室信息维护
     */
    @Override
    public ConferenceRoom selectConferenceRoomById(Long id)
    {
        return conferenceRoomMapper.selectConferenceRoomById(id);
    }

    /**
     * 查询会议室信息维护列表
     * 
     * @param conferenceRoom 会议室信息维护
     * @return 会议室信息维护
     */
    @Override
    public List<ConferenceRoom> selectConferenceRoomList(ConferenceRoom conferenceRoom)
    {
        return conferenceRoomMapper.selectConferenceRoomList(conferenceRoom);
    }

    /**
     * 新增会议室信息维护
     * 
     * @param conferenceRoom 会议室信息维护
     * @return 结果
     */
    @Override
    public int insertConferenceRoom(ConferenceRoom conferenceRoom)
    {
        return conferenceRoomMapper.insertConferenceRoom(conferenceRoom);
    }

    /**
     * 修改会议室信息维护
     * 
     * @param conferenceRoom 会议室信息维护
     * @return 结果
     */
    @Override
    public int updateConferenceRoom(ConferenceRoom conferenceRoom)
    {
        return conferenceRoomMapper.updateConferenceRoom(conferenceRoom);
    }

    /**
     * 批量删除会议室信息维护
     * 
     * @param ids 需要删除的会议室信息维护主键
     * @return 结果
     */
    @Override
    public int deleteConferenceRoomByIds(Long[] ids)
    {
        return conferenceRoomMapper.deleteConferenceRoomByIds(ids);
    }

    /**
     * 删除会议室信息维护信息
     * 
     * @param id 会议室信息维护主键
     * @return 结果
     */
    @Override
    public int deleteConferenceRoomById(Long id)
    {
        return conferenceRoomMapper.deleteConferenceRoomById(id);
    }
}
